﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Matthew
{
    public partial class FrmOrder2 : Form
    {
        public Order order;

        public void Initalize()
        {
            lblOrderID.Text = "Order ID: " + order.OrderID;
            txtSpecialInstructions.Text = order.SpecialInstructions;
            txtNotes.Text = order.Notes;
        }

        public FrmOrder2()
        {
            InitializeComponent();
        }

        private void btnBack_Click(object sender, EventArgs e)
        {
            this.Hide();
            AllFormClass.FormOrder.Show();
        }

        private void btnAccept_Click(object sender, EventArgs e)
        {
            if (AllFormClass.FormOrder.acceptOrder())
            {
                this.Hide();
                AllFormClass.FormOrder.Show();
            }
        }
    }
}
